package adv3;

public class StrTest4 {

	public static void main(String[] args) {
		String s2 = "Java is not only a programming language,but a platform";
		String[] ar = s2.split("(\\s+|,)");
		System.out.println("分割后的结果：");
		for (String s : ar) {
			System.out.println(s);
		}

	}

}
